import request from '@/utils/request'

const api = {
  // login: '/auth/login',
  login: '/auth//user_login',
  getScancode: '/comdesk_auth/get_scan_code',
}

export function login(data) {
  return request({
    url: api.login,
    method: 'post',
    data,
  })
}

export function getScancode() {
  return request({
    url: api.getScancode,
    method: 'get',
  })
}
